package com.come4loves.game.dataconfig.model;

import com.come4loves.core.dataconfig.ModelAdapter;
import com.come4loves.core.dataconfig.annotation.DataFile;
import com.come4loves.game.module.card.constant.Quality;

@DataFile(fileName = "GemsShopConfig")
public class GemsShopConfig implements ModelAdapter {
	
	/**
	 * id
	 */
	private int id;
	
	/**
	 * 类型id
	 */
	private int typeId;
	
	/**
	 * 商品id
	 */
	private int goodsId;
	
	/**
	 * 品质id
	 */
	private int boxTypeId;
	
	/**
	 * 购买上限
	 */
	private int buyLimit;
	
	/**
	 * 花费金币
	 */
	private int coin;
	
	/**
	 * 花费钻石
	 */
	private int gem;
	/**
	 *购买数量
	 */
	private int buyNum;
	/**
	 * 购买标识
	 */
	private int flag;
	
	@Override
	public void initialize() {
	}

	public int getId() {
		return id;
	}


//	public ItemType geCardType() {
//		return ItemType.getCardType(cardType);
//	}

	public int getTypeId() {
		return typeId;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public int getBoxTypeId() {
		return boxTypeId;
	}

	public int getBuyLimit() {
		return buyLimit;
	}

	public int getCoin() {
		return coin;
	}

	public int getGem() {
		return gem;
	}

	public int getBuyNum() {
		return buyNum;
	}

	public int getFlag() {
		return flag;
	}

	public Quality geQuality() {
		return Quality.getQualityType(boxTypeId);
	}
	
}